package com.tonghe.controller;

import com.tonghe.domain.ResponseResult;
import com.tonghe.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Date:2022/2/15- 02- 15- 16:14
 * @author: tonghe
 **/
@RestController
@RequestMapping("/category")
public class CategoryController {

    @Autowired
    private CategoryService categoryService;

    /**
    * @description:查询文章已有分类
    * @param： []
    * @return： com.tonghe.domain.ResponseResult
    */
    @GetMapping("/getCategoryList")
    public ResponseResult getCategoryList(){
        return categoryService.getCategoryList();
    }



}
